package cn.lycode.system.service.impl;

import cn.lycode.system.mapper.SysUserPostMapper;
import cn.lycode.system.service.SysRoleService;
import cn.lycode.system.service.SysUserPostService;
import lombok.AllArgsConstructor;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Title: SysUserPostServiceImpl
 * @Author lyg
 * @Date 2024/11/29 16:58
 * @description:
 */
@Service
@RequiredArgsConstructor
public class SysUserPostServiceImpl implements SysUserPostService {
    private final SysUserPostMapper sysUserPostMapper;

    @Override
    public void deleteUserPostByUserIds(List<Long> userIds) {
        sysUserPostMapper.deleteUserPostByUserIds(userIds);
    }

    @Override
    public void batchAddUserPost(List<Long> userIds, List<Long> postIds) {
        sysUserPostMapper.batchAddUserPost(userIds, postIds);
    }
}
